<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<!-- Bootstrap core CSS -->
    <link href="<%=basePath %>admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="<%=basePath %>admin/css/bootstrap-reset.css" rel="stylesheet">
    <!--external css-->
    <link href="<%=basePath %>admin/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <!-- Custom styles for this template -->
    <link href="<%=basePath %>admin/css/style.css" rel="stylesheet">
    <link href="<%=basePath %>admin/css/style-responsive.css" rel="stylesheet" />

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>
<jsp:include page="top.jsp"></jsp:include>
  <section id="container" class="">
      <!--header start-->
      
      <!--sidebar end-->
      <!--main content start-->
      <section id="main-content">
          <section class="wrapper">
              <!-- page start-->
              <div class="row">
                 
                  <aside class="profile-info col-lg-9">
                     
                      <section>
                          <div class="panel panel-primary">
                              <div class="panel-heading"> 编辑奖品</div>
                              <div class="panel-body">
                                  <form class="form-horizontal" role="form" enctype="multipart/form-data" action="<%=basePath %>prize/update/update" method="post">
                                  <input type="hidden" value="${prize.picpath }" name="picpath">
                                  <input type="hidden" value="${prize.id }" name="id">
                                      <div class="form-group">
                                          <label  class="col-lg-2 control-label">奖品名称</label>
                                          <div class="col-lg-6">
                                              <input type="text" value="${prize.name }" name="name" class="form-control" id="c-pwd" placeholder=" ">
                                          </div>
                                      </div>
                                      <div class="form-group">
                                          <label  class="col-lg-2 control-label">奖品抽中几率%</label>
                                          <div class="col-lg-6">
                                              <input type="text" name="probability" value="${prize.probability }" class="form-control" id="n-pwd" placeholder="">
                                          </div>
                                      </div>
                                      

                                      <div class="form-group">
                                          <label  class="col-lg-2 control-label">选择图片</label>
                                          <div class="col-lg-6">
                                              <input type="file" name="uploadFile" class="file-pos">
                                          </div>
                                      </div>

                                      <div class="form-group">
                                          <div class="col-lg-offset-2 col-lg-10">
                                              <button type="submit" class="btn btn-info">Save</button>
                                              <a href="<%=basePath %>admin/jsp/giftList.jsp" class="btn btn-default">Cancel</a>
                                          </div>
                                      </div>
                                  </form>
                              </div>
                          </div>
                      </section>
                  </aside>
              </div>

              <!-- page end-->
          </section>
      </section>
      <!--main content end-->
  </section>




</body>
</html>